// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_SYS_WORKING_PERIOD
// * CreateDate    : 2014-06-05 20:10:53
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 20:10:53
// * LastChanger   : 2014-06-05 20:10:53
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class SysWorkingPeriodTable : TableInfo
    {
        public const string C_TableName = "SYS_WORKING_PERIOD";

        public const string C_ID = "ID";
        public const string C_IS_ACTIVE = "IS_ACTIVE";
        public const string C_TIME_FROM = "TIME_FROM";
        public const string C_TIME_TO = "TIME_TO";
        public const string C_EXCUTING_TIME = "EXCUTING_TIME";
        public const string C_PERIOD_ID = "PERIOD_ID";
        public const string C_SHIFT_TYPE = "SHIFT_TYPE";

        public SysWorkingPeriodTable()
        {
            _tableName = "SYS_WORKING_PERIOD";
        }

        protected static SysWorkingPeriodTable _current;
        public static SysWorkingPeriodTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new SysWorkingPeriodTable();

            _current.Add(C_ID, new ColumnInfo(C_ID, "Id", true, typeof(string)));
            _current.Add(C_IS_ACTIVE, new ColumnInfo(C_IS_ACTIVE, "IsActive", false, typeof(int)));
            _current.Add(C_TIME_FROM, new ColumnInfo(C_TIME_FROM, "TimeFrom", false, typeof(DateTime)));
            _current.Add(C_TIME_TO, new ColumnInfo(C_TIME_TO, "TimeTo", false, typeof(DateTime)));
            _current.Add(C_EXCUTING_TIME, new ColumnInfo(C_EXCUTING_TIME, "ExcutingTime", false, typeof(decimal)));
            _current.Add(C_PERIOD_ID, new ColumnInfo(C_PERIOD_ID, "PeriodId", false, typeof(string)));
            _current.Add(C_SHIFT_TYPE, new ColumnInfo(C_SHIFT_TYPE, "ShiftType", false, typeof(string)));

        }

        public ColumnInfo ID
        {
            get { return this[C_ID]; }
        }

        public ColumnInfo IS_ACTIVE
        {
            get { return this[C_IS_ACTIVE]; }
        }

        public ColumnInfo TIME_FROM
        {
            get { return this[C_TIME_FROM]; }
        }

        public ColumnInfo TIME_TO
        {
            get { return this[C_TIME_TO]; }
        }

        public ColumnInfo EXCUTING_TIME
        {
            get { return this[C_EXCUTING_TIME]; }
        }

        public ColumnInfo PERIOD_ID
        {
            get { return this[C_PERIOD_ID]; }
        }

        public ColumnInfo SHIFT_TYPE
        {
            get { return this[C_SHIFT_TYPE]; }
        }



    }
}

